﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Business_Objects
{
    public class ChiTietThanhPhanThucPham
    {
        private Guid _id;
        private Guid _thucPhamId = Guid.Empty;
        private Guid _thanhPhanThucPhamId = Guid.Empty;
        private double _luongTrenMotDonVi;
        private bool _isThanhPhanChinh;

        public ChiTietThanhPhanThucPham()
        {
        }

        public ChiTietThanhPhanThucPham(  Guid _id,
         Guid _thucPhamId ,
         Guid _thanhPhanThucPhamId,
         double _luongTrenMotDonVi,
         bool _isThanhPhanChinh)
        {
            Id = _id;
            ThucPhamId = _thucPhamId;
            ThanhPhanThucPhamId = _thanhPhanThucPhamId;
            LuongTrenMotDonVi = _luongTrenMotDonVi;
            IsThanhPhanChinh = _isThanhPhanChinh;
        }
        #region Public Properties
        public Guid Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public Guid ThucPhamId
        {
            get { return _thucPhamId; }
            set { _thucPhamId = value; }
        }

        public Guid ThanhPhanThucPhamId
        {
            get { return _thanhPhanThucPhamId; }
            set { _thanhPhanThucPhamId = value; }
        }

        public double LuongTrenMotDonVi
        {
            get { return _luongTrenMotDonVi; }
            set { _luongTrenMotDonVi = value; }
        }

        public bool IsThanhPhanChinh
        {
            get { return _isThanhPhanChinh; }
            set { _isThanhPhanChinh = value; }
        }
        #endregion
    }
}
